file reading and paddle stuff