nxt dependency updated to 1.3.1, some fixes made accordingly