Simplifying node sctrip to get homework done :(