more refactoring
added more actions to encoder