added authorization (version 0.02)