Semiauto storage

I include here also small refactoring of access to profile to looks more like ruby.