keep showing err message
organize into files