allow custom aprams in auto fork Fixes #501 Improve exceptions Fixes #527