swim prototype scripts