line effect hacks copied from the old Neptune9