clear command (to recreate resourcses), some code preparation
copy resources, if not exists
small corrections