correct function permissions, added case sensitivity, cleaned manager