fixed requires
added test for auto-format
re-fined auto formatting