init
added authorization, data inserting