added friend storing
moved init to other file