closes #2 thanks @alanwillms