change status to int. Fixes #439