basic authentication
minor fixes.