bug fixes
better cleaning of frontend input