fixed arch check and added newlines