moved libs to file and added encoders to moveTo