update diretive comments; stop redirecting API paths under certain circumstances (like image upload)