probably the final version - simplified
moved to version 0.1.2