improved core and try to add a engine (portfolio) to gemfile (failed)