refactoring done
switched from LineReceiver to AMP